import 'package:flutter/material.dart';
import 'package:flutter_tech_shop/src/widgets/search_bar.dart';
import 'package:flutter_tech_shop/widgets/app_button.dart';

class SearchPage extends StatelessWidget {
  const SearchPage({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('搜索'),
      ),
      body: Container(
        padding: const EdgeInsets.symmetric(horizontal: 15),
        child: Column(
          children: [
            Row(
              children: [
                const Expanded(
                    child: AppSearchBar(
                  minHeight: 40,
                  hintText: '搜索商品',
                )),
                const SizedBox(width: 10),
                AppButton(
                    width: 100, height: 40, content: '搜索', onPressed: () {}),
              ],
            ),
            const Expanded(
                child: Center(
                  child: Text('暂无结果'),
                ))
          ],
        ),
      ),
    );
  }
}
